home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3041 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: jaxnet.jaxnet.com!jax!garyg
  2. From: garyg@jax.jaxnet.com (Gary M. Greenberg)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: [Q]How can I read ints and floats by using fgets() ?
  5. Date: 25 Jan 1996 18:28:54 GMT
  6. Organization: Southeast Network Services, Inc.
  7. Message-ID: <4e8i56$j4a@jaxnet.jaxnet.com>
  8. References: <4e56sn$p6n@wraith.cc.uow.edu.au>
  9. NNTP-Posting-Host: jax.jaxnet.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Abimanju Manoharan (am@wraith.cc.uow.edu.au) wrote:
  13. : Hi everybody,
  14. : I have a small problem in my c program. I want to read a file for exe.
  15. : the file (file size is not constant):
  16.  
  17. : 4 11
  18. : 2.5 4 13 3.7
  19. : 5 4 2.1
  20. : 2.4 
  21.  
  22. : I have to read each line by using fgets(). then I have to convert this 
  23. : string. There are float values and int values are mixed.
  24. : Du you any idea? or du you have another way to read this?
  25.  
  26. : Could you kindly send a e-mail to me.
  27.  
  28. : thanks
  29. : A.Mano
  30.  
  31. : am@cs.uow.edu.au
  32.  
  33.  
  34.  
  35. --
  36. gary    /* the Sorcerer's Apprentice */
  37.  
  38. "Why do we have to hide from the police, Daddy?"
  39. "Because we use vi, honey. They use emacs."
  40. "Unless we're on the Mac. Then we use BBEdit 'cause 'It doesn't suck.'"
  41.